//
//  UIView+GEE_fastInit.h
//  GeelyApp
//
//  Created by LJQ on 2021/4/23.
//  Copyright © 2021 Geely. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef void (^Block) (UITapGestureRecognizer *gesture);

typedef enum : NSUInteger {
    tapAction,
    longAction,
    panAction,
    roationAction,
    swipeAction,
    pinchAction
} GestureENUM;
@interface UIView (Tools_HYC_Neusoft)


/// 对view进行标识
@property (nonatomic,copy)NSString *H_Code;

/// 链式语法--frame
- (UIView *(^)(CGRect T)) H_frame;

/// 链式语法--添加self到指定view上
- (UIView *(^)(UIView * T)) H_addSubViewFoSuper;

/// view转image方法
- (UIImage *)H_image;

/// 修改部分圆角
/// @param radius 圆角值
/// @param corner 圆角位置
-(void)setLayers:(CGFloat)radius type:(UIRectCorner)corner;

/// 修改全部圆角
/// @param radius 角度值
-(void)setLayers:(CGFloat)radius;

/// 颜色渐变左到右
/// @param leftColor color值
/// @param rightColor color值
- colorLayer_GradientWith:(UIColor *)leftColor With:(UIColor *)rightColor;

/// View添加点击事件
/// @param enumType 点击类型
/// @param block 回调
-(instancetype)addGuest:(GestureENUM)enumType resutlBlock:(Block)block;
@end

NS_ASSUME_NONNULL_END
